<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsBarsignTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('barsign', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->bigInteger('uid')->comment('关联用户id');
			$table->tinyInteger('today_sign')->nullable()->default(0)->comment('今日是否签到1为已签到');
			$table->integer('continuity_sign')->nullable()->default(0)->comment('连续签到天数');
			$table->tinyInteger('week_sign')->nullable()->default(0)->comment('本周连续签到天数');
			$table->integer('lately_sign')->nullable()->comment('最近一次签到时间');
			$table->string('bar_num', 32)->comment('吧num');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('barsign');
	}

}
